<?php

namespace App\Http\Controllers\applet_api;

use App\Http\Controllers\Controller;
use App\Models\AppCoursePage;
use Illuminate\Http\Request;

class CoursePageController extends Controller
{
    public function index(Request $Request)
    {
        $type = $Request->type ?? 0;
        $data = AppCoursePage::where('type',$type)->first();
        return response()->json(['code' => '200', 'msg' => 'success','data'=>$data]);
    }
}
